package com.building18.handler;

import com.building18.handler.exception.MyException;
import com.building18.pojo.Result;

/**
 * 断言
 */

public class MyAssert {
    public static void error(boolean flg, String msg) {
        if (flg) {
            throw new MyException(Result.fail(msg));
        }
    }
}
